const metadata = (request) => {
	return {
		view_tableConfig_page(query = {}) {
			return request(`/bussiness/tableConfig/page`, {
				method: 'post',
				data: query,
			})
		},
		view_tableConfig_add(query = {}) {
			return request(`/bussiness/tableConfig/add`, {
				method: 'post',
				data: query,
			})
		},
		view_tableConfig_edit(query = {}) {
			return request(`/bussiness/tableConfig/edit`, {
				method: 'post',
				data: query,
			})
		},
		view_tableConfig_del(query = {}) {
			return request(`/bussiness/tableConfig/del`, {
				method: 'post',
				data: {
					batchesDel: query,
				}
			})
		},
		view_metadata_page(query = {}) {
			return request(`/bussiness/metadata/page`, {
				method: 'post',
				data: query,
			})
		},
		view_metadata_add(query = {}) {
			return request(`/bussiness/metadata/add`, {
				method: 'post',
				data: query,
			})
		},
		view_metadata_edit(query = {}) {
			return request(`/bussiness/metadata/edit`, {
				method: 'post',
				data: query,
			})
		},
    view_metadata_del(query = {}) {
			return request(`/bussiness/metadata/del`, {
				method: 'post',
				data: {
					batchesDel: query,
				}
			})
		},
    view_metadata_tableColumnList(query = {}) {
			return request(`/bussiness/metadata/tableColumnList`, {
				method: 'post',
				data: query
			})
		},
    view_metadata_view(id) {
			return request(`/bussiness/metadata/${id}`)
		},
    view_tableConfig_view(id) {
			return request(`/bussiness/tableConfig/${id}`)
		},
	}
}
export default ({ request }: any) => ({
	...metadata(request),
})